package org.example.thread.threadException;

import lombok.SneakyThrows;

/**
 * @Auther:Liu
 * @Testname:DemoA
 * @Date:2025/8/14 14:55
 */
public class DemoA {

    @SneakyThrows
     public synchronized void a(){
         String name = Thread.currentThread().getName();
         System.out.println(name + " is running");
         Thread.sleep(3000);
         System.out.println(name + " is stopped");
     }
}
